home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-06-20 | 1.6 KB | 63 lines |
- #
- # Makefile for wall
- #
- DESTDIR=
- #
- # For ConvexOS 9.0, add -pcc to CFLAGS.
- # For UNICOS 5.1.11, add -DCRAY.
- #
- # If your xwall lives in a non-standard place, define:
- #
- # -DXWALL=\"<path to xwall>\"
- #
- CFLAGS= -O -DUW
-
- PROGRAM= wall
- SRCS= wall.c
- LIBS=
- #
- # wall needs the BSD libraries under UNICOS.
- #
- #LIBS= -lbsd -lnet
-
- ${PROGRAM}: ${SRCS}
- ${CC} ${CFLAGS} -o $@ $@.c ${LIBS}
-
- install:
- install -g tty -m 2755 -s ${PROGRAM} ${DESTDIR}/bin/${PROGRAM}
-
- tags:
- ctags -tdw *.c
-
- clean:
- rm -f ${PROGRAM} a.out core *.s *.o made
-
-
- depend:
- for i in ${SRCS}; do \
- cc -M ${INCPATH} $$i | sed 's/\.o//' | \
- awk ' { if ($$1 != prev) \
- { if (rec != "") print rec; rec = $$0; prev = $$1; } \
- else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
- else rec = rec " " $$2 } } \
- END { print rec } ' >> makedep; done
- echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
- echo '$$r makedep' >>eddep
- echo 'w' >>eddep
- cp Makefile Makefile.bak
- ed - Makefile < eddep
- rm eddep makedep
- echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
- echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
- echo '# see make depend above' >> Makefile
-
- # DO NOT DELETE THIS LINE -- make depend uses it
- # DEPENDENCIES MUST END AT END OF FILE
- wall: wall.c /usr/include/stdio.h /usr/include/utmp.h /usr/include/errno.h
- wall: /usr/include/signal.h /usr/include/sys/time.h /usr/include/fcntl.h
- wall: /usr/include/sys/file.h /usr/include/sys/types.h /usr/include/sys/types.h
- wall: /usr/include/sys/stat.h
- # DEPENDENCIES MUST END AT END OF FILE
- # IF YOU PUT STUFF HERE IT WILL GO AWAY
- # see make depend above
-